#include "pch.h"
#include "CThreadPoolExecutor.h"
#include "assert.h"
using namespace MyThreadPool;

CThreadPoolExecutor::CThreadPoolExecutor(int corePoolSize, int maximumPoolSize, int keepAliveTime, CWorkerReject* rejecter) :
	m_iCorePoolSize(corePoolSize),
	m_iMaximumPoolSize(maximumPoolSize),
	m_iKeepAliveTime(keepAliveTime),
	m_pRejecter(rejecter)
{
	assert(corePoolSize > 0 && maximumPoolSize >= corePoolSize && maximumPoolSize < MAX_WORK_SIZE);
	keepAliveTime = keepAliveTime < 0 ? -1 : keepAliveTime;
}

bool CThreadPoolExecutor::Execute(TASK task)
{
	return false;
}